<?php
    //动态首页
    $pictures = array(
        './publice/images/1.png', './publice/images/2.png',
        './publice/images/3.png', './publice/images/4.png',
        './publice/images/5.png', './publice/images/6.png');//一维数组
    shuffle($pictures);//随机排序
?>
<h1>鲍勃的自动配件</h1>
<div align="center">
        <table style="width: 100%; border: 0">
            <tr>
                <?php
    for ($i = 0; $i < 3; $i++) {
        echo "<td style=\"width:33%; text-align: center\">
        <img src=\"";
        echo $pictures[$i];
        echo "\"/></td>";
    }
?>
            </tr>
        </table>
    </div>

    <style>
        table img {
            width: auto;
            height: 200px;
        }
    </style>
